home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / dev / gcc / libnixV1_0.lha / gnu / libnix-sources.lha / examples / makefile < prev    next >
Makefile  |  1995-01-22  |  405b  |  22 lines

  1. # Some examples
  2.  
  3. .PHONY: all
  4.  
  5. all: lib libr dev helloworld
  6.  
  7. # normal library
  8. lib: libinit.o simplelib.c
  9.     gcc -nostdlib -O3 -fbaserel $^ -o $@
  10.  
  11. # multibase library
  12. libr: libinitr.o simplelib.c
  13.     gcc -nostdlib -O3 -resident $^ -o $@
  14.  
  15. # device
  16. dev: devinit.o simpledev.c
  17.     gcc -nostdlib -O3 -fbaserel $^ -o $@
  18.  
  19. # helloworld
  20. helloworld: nbcrt0.o helloworld.c libstubs.a
  21.     gcc -nostdlib -O3 -s -fbaserel $^ -o $@
  22.